projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eece18d
)
themingengine: use gtk_icon_source_get_state_wildcarded()
author
Cosimo Cecchi
<cosimoc@gnome.org>
Sun, 4 Aug 2013 07:19:03 +0000
(09:19 +0200)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Sun, 4 Aug 2013 07:19:03 +0000
(09:19 +0200)
A recent refactor of this code missed a check for the wildcarded state
on the icon source.
gtk/gtkthemingengine.c
patch
|
blob
|
history
diff --git
a/gtk/gtkthemingengine.c
b/gtk/gtkthemingengine.c
index edb493ba6145e09e1e62e7c10a239e50f7d79e51..d47b7d2a42256fa2b92020fb05fc016cbd5912a2 100644
(file)
--- a/
gtk/gtkthemingengine.c
+++ b/
gtk/gtkthemingengine.c
@@
-2728,6
+2728,10
@@
gtk_theming_engine_render_icon_pixbuf (GtkThemingEngine *engine,
scaled = g_object_ref (base_pixbuf);
/* If the state was wildcarded, then generate a state. */
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+ wildcarded = gtk_icon_source_get_state_wildcarded (source);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
+
if (wildcarded)
{
if (state & GTK_STATE_FLAG_INSENSITIVE)